edwardpizarro-loops-fatima.js#27
Open
epizarro98 wants to merge 1 commit intoTaylorDarneille:masterfrom
Open
Conversation
ghost
reviewed
Sep 9, 2020
|
|
||
| for(var i = 0; i <= 200; i+=2) { // will add plus 2 | ||
| console.log(i) | ||
| } |
ghost
reviewed
Sep 9, 2020
| console.log(kittens[randomChoice]) | ||
| } | ||
| } | ||
| //I wasnt sure on how to get that code to print 10 times. I also had a classmate help me on this is so shout out to thst person. But for the mos part I do get whats going on. |
There was a problem hiding this comment.
it isn't printing 10 times because your condition tells it to print ONLY on the even-numbered loops. try adding other conditions that print things when the loop is odd!
ghost
reviewed
Sep 9, 2020
| console.log(`The current temperature is now ${currentTemp}F`) | ||
| currentTemp-- | ||
| } | ||
| console.log(Math.floor(Math.random(29))) |
There was a problem hiding this comment.
your indentation here's a little funky. see if you can figure out how to fix it on your own!
ghost
reviewed
Sep 9, 2020
| }else { | ||
| console.log(i)//i = 0? | ||
| } | ||
| } |
ghost
reviewed
Sep 9, 2020
| console.log(i)//i = 0? | ||
| } | ||
| } | ||
| //I did alot of research on it and found multiple ways on how to do this but this way made the most sense to be. I have a pretty good understanding with whats going on in this code. I also found it interesting seeing the different kinds of solutions. |
There was a problem hiding this comment.
that's great! I'm glad you're really digging in and learning from others' examples, along with finding your own style 👍
|
awesome job here! I can tell you really spent time on this and did your best to learn from others' code and explanations. 🥇 you're doing great! marking complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Have a better understanding after today's class. Trez and Seth were a huge help as well. Will definitely need to practice more. Please see the comments under each code !